<cfparam name="request.account_create.ffields" default="firstname,lastname">
<cfparam name="request.account_create.labels" default="First Name, Last Name">
<cfparam name="request.account_create.requiredfields" default="">
<cfparam name="request.account_create.startup" default="/members/account/menu.cfm">
<cfparam name="request.account_create.showterms" default="1">
<cfif isdefined('form.fieldnames')>
  <cfinvoke component="cfcs.common.settings" method="writecsettings" c="account_create" fname="settings.cfm" returnvariable="isok" />
  <div id="messages">Settings have been saved</div>
</cfif>
<cfoutput>
<form method="post" action="index.cfm?c=accounts&a=settings" name="settingsform">
  <table width="100%" border="0" cellspacing="0" cellpadding="6">
    <tr>
      <td width="200" valign="top">Fields:</td>
      <td><textarea name="ffields" id="ffields" rows="5" cols="40">#request.account_create.ffields#</textarea>
      <td valign="top">Enter additional field names you would like to display on the signup form, and seperate them with commas.<br />
        <a href="javascript: viewfieldlist();">View list of fields</a></td>
    </tr>
    <tr>
      <td valign="top">Required Fields:</td>
      <td><textarea name="requiredfields" id="requiredfields" rows="5" cols="40">#request.account_create.requiredfields#</textarea>    
      <td valign="top">Enter field names from above you want to be required, and seperate them with a comma.</td>
    </tr>
    <tr>
      <td width="200" valign="top">Labels:</td>
      <td><textarea name="labels" id="labels" rows="5" cols="40">#request.account_create.labels#</textarea>
      <td valign="top">Enter the labels you want to show for the fields above. You must enter the exact same number of labels as you have fields or your form will not display correctly.</td>
    </tr>
    <tr>
      <td valign="top">What loads when they login?</td>
      <td colspan="2"><input name="startup" type="text" id="startup" size="45" value="#request.account_create.startup#"></td>
    </tr>
    <tr>
      <td valign="top">Show Terms?</td>
      <td colspan="2"><select name="showterms" id="showterms">
            <option value="1" <cfif request.account_create.showterms IS 1>selected="selected"</cfif>>Yes</option>
            <option value="0" <cfif NOT request.account_create.showterms IS 1>selected="selected"</cfif>>No</option>
        </select>      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="2"><input type="submit" value="Save Settings" id="abutton" name="submitbutton" /></td>
    </tr>
  </table>
</form>
</cfoutput>
<div id="dialog3" style="display: none; font-size: 10pt;" title="Field Names">
<div>
firstname (First Name)<br />
lastname (Last Name)<br />
companyname (Company)<br />
title (Title)<br />
address (Address)<br />
address2 (Address Line 2)<br />
city (City)<br />
state (State)<br />
zip (Zip Code)<br />
country (Country)<br />
phone (Phone)<br />
fax (Fax)<br />
mobile (Mobile)<br />
carrier (Mobile Carrier)<br />
textemail (Texting Email Address)<br />
timezone_offset (Timezone)<br />
website (Website)<br />
gender (Gender)<br />
</div>
</div>